package com.qianli.cashmama.trade.openApi.controller.response;

/**
 * @Author: cashmama
 * @Date: 2020/12/2-09:09
 * @Description: TODO
 * @Slogan: To be or not to be
 **/
public enum  OpenApiResultCode {
    SUCCESS(200, "success"),
    FAILURE(405, "system error"),
    PARAM_ERROR(401, "param error"),
    ORDER_NOR_EXIST(402,"order not exist"),
    OPEN_API_ERROR(403,"open api return error")

    ;

    private Integer code;
    private String msg;

    OpenApiResultCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
